package STUDENT.LETRUNGHIEU.OOPs.OOPS_EXCERCISES.EXCERCISE_2;

public class Models {
	
	public double cong(Object obj){
		return obj.getSoA() + obj.getSoB();
	}
	
	public double tru(Object obj){
		return obj.getSoA() - obj.getSoB();
	}
	
	public double nhan(Object obj){
		return obj.getSoA() * obj.getSoB();
	}
	
	public double chia(Object obj){
		return obj.getSoA() / obj.getSoB();
	}
	
	public double chia2(Object obj){
		return obj.getSoA() % obj.getSoB();
	}
	
}
